home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _3ADA3C8346A047079A1DE7698018C150 < prev    next >
Encoding:
Text File  |  2006-08-04  |  4.7 KB  |  131 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Angela M. Cable',
  6.         'Copyright': '2002, for free distribution only',
  7.         'Description': "An impressionist effect, works best on images with not much detail",
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.     App.Do( Environment, 'LayerDuplicate', {
  14.             'GeneralSettings': {
  15.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  16.                 }
  17.             })
  18.  
  19.     App.Do( Environment, 'SelectLayer', {
  20.             'Path': (0,-1,[],App.Constants.Boolean.false), 
  21.             'GeneralSettings': {
  22.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  23.                 }
  24.             })
  25.  
  26.     App.Do( Environment, 'UserDefinedFilter', {
  27.             'ApplyToRed': App.Constants.Boolean.true, 
  28.             'Bias': 0, 
  29.             'ApplyToGreen': App.Constants.Boolean.true, 
  30.             'Divisor': 1, 
  31.             'ApplyToGrey': App.Constants.Boolean.false, 
  32.             'ApplyToBlue': App.Constants.Boolean.true, 
  33.             'Kernel': ((0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,2,1,0,0,0),(0,0,1,1
  34.                 ,-1,0,0),(0,0,0,-1,-2,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0)), 
  35.             'GeneralSettings': {
  36.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  37.                 'PreviewVisible': App.Constants.Boolean.true, 
  38.                 'AutoProof': App.Constants.Boolean.false
  39.                 }
  40.             })
  41.  
  42.     App.Do( Environment, 'SelectLayer', {
  43.             'Path': (0,1,[],App.Constants.Boolean.false), 
  44.             'GeneralSettings': {
  45.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  46.                 }
  47.             })
  48.  
  49.     App.Do( Environment, 'BrushStrokes', {
  50.             'Angle': 177, 
  51.             'Bristles': 256, 
  52.             'Color': (0,0,0), 
  53.             'Density': 17, 
  54.             'Length': 18, 
  55.             'Opacity': 100, 
  56.             'Softness': 9, 
  57.             'Width': 6, 
  58.             'GeneralSettings': {
  59.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  60.                 'PreviewVisible': App.Constants.Boolean.true, 
  61.                 'AutoProof': App.Constants.Boolean.false
  62.                 }
  63.             })
  64.  
  65.     App.Do( Environment, 'LayerDuplicate', {
  66.             'GeneralSettings': {
  67.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  68.                 }
  69.             })
  70.  
  71.     App.Do( Environment, 'LayerProperties', {
  72.             'General': {
  73.                 'Opacity': None, 
  74.                 'Name': None, 
  75.                 'IsVisible': None, 
  76.                 'IsTransparencyLocked': None, 
  77.                 'LinkSet': None, 
  78.                 'UseHighlight': None, 
  79.                 'PaletteHighlightColor': None, 
  80.                 'GroupLink': None, 
  81.                 'BlendMode': App.Constants.BlendMode.Darken
  82.                 }, 
  83.             'BlendRanges': None, 
  84.             'Path': (0,-1,[],App.Constants.Boolean.false), 
  85.             'BrightnessContrast': None, 
  86.             'ChannelMixer': None, 
  87.             'ColorBalance': None, 
  88.             'CurveParams': None, 
  89.             'HSL': None, 
  90.             'Threshold': None, 
  91.             'Levels': None, 
  92.             'Posterize': None, 
  93.             'Mask': None, 
  94.             'GeneralSettings': {
  95.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  96.                 'PreviewVisible': App.Constants.Boolean.true, 
  97.                 'AutoProof': App.Constants.Boolean.false
  98.                 }
  99.             })
  100.  
  101.     App.Do( Environment, 'LayerProperties', {
  102.             'General': {
  103.                 'Opacity': None, 
  104.                 'Name': None, 
  105.                 'IsVisible': None, 
  106.                 'IsTransparencyLocked': None, 
  107.                 'LinkSet': None, 
  108.                 'UseHighlight': None, 
  109.                 'PaletteHighlightColor': None, 
  110.                 'GroupLink': None, 
  111.                 'BlendMode': App.Constants.BlendMode.Multiply
  112.                 }, 
  113.             'BlendRanges': None, 
  114.             'Path': (0,0,[],App.Constants.Boolean.false), 
  115.             'BrightnessContrast': None, 
  116.             'ChannelMixer': None, 
  117.             'ColorBalance': None, 
  118.             'CurveParams': None, 
  119.             'HSL': None, 
  120.             'Threshold': None, 
  121.             'Levels': None, 
  122.             'Posterize': None, 
  123.             'Mask': None, 
  124.             'GeneralSettings': {
  125.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  126.                 'PreviewVisible': App.Constants.Boolean.true, 
  127.                 'AutoProof': App.Constants.Boolean.false
  128.                 }
  129.             })
  130.  
  131.